﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>团队管理</title>
    @Html.Partial("wap/team/commonMeta")
    <link rel="stylesheet" href="~/css/wap/team/product.css?v=@MvcWechat.Common.Version.Get" />
    <link href="~/Css/wap/team/stock.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet" />
    <link href="~/Css/wap/team//teamorder.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet"/>
    <style type="text/css">
        .list_user ul li{ margin-bottom: 8px;}
        #_role { position: relative;}
        #_role >label{ display: inline-block; width: 24%; text-align: right; position: absolute; top: 2px}
        #_role > ul{display: inline-block; margin-left: 24%;}

    </style>
</head>
<body>
<div class="views">
    <div class="view view-main">
        <div class="navbar">
            <div class="navbar-inner">
                <header id="common_header">
                    <div class="menu_icon_box" id="show_menu_btn">
                        <em class="menu-btn"></em>
                    </div>
                    <div class="menu_icon_box" id="hide_menu_btn">
                        <em class="colse-nav-btn"></em>
                    </div>
                    <h2>团队管理</h2>
                </header>
                @Html.Partial("wap/team/teammenu")
                <div class="subnavbar" style="display: block;padding: 0;height:auto;background-color: #fff;padding-top: 5px;">
                    <div class="list_status clearfix" id="_sysStatus">
                        <ul>
                            <li data-value="1" class="add_blue">正常</li>
                            <li data-value="2">待审<span style="display: none;">(<b id="wait_user">0</b>)</span></li>
                            <li data-value="0">禁用</li>
                            <li data-value="-1">已删</li>
                        </ul>
                        <span id="show_term_btn" class="add_blue">筛选</span>
                    </div>

                    <div class="check_btn_box li_btn_box clearfix">
                        <ul>
                            <li><span class="add add_blue add_min" id="add_btn">添加</span></li>
                        </ul>
                    </div>
                    <table class="product_table" id="product_table_fixed" style="padding-top: 3px;">
                        <thead>
                        <tr>
                            <th style='width:8%' class="check_head_box"></th>
                            <th class='nickname' style='width:12%'>账号</th>
                            <th style='width:12%'>名字</th>
                            <th style='width:10%'>职能</th>
                            <th style='width:10%'>部门</th>
                            <th style='width:10%'>性别</th>

                            <th title="登录次数" style='width:10%'>次数<i class="sort sort_normal" data-sort="LoginCount"></i></th>
                            <th title="上传登录时间" style='width:12%'>上次<i class="sort sort_asc" data-sort-direct="asc" data-sort="LastActiveTime"></i></th>
                            <th style='width:10%'>状态<i class="sort sort_normal" data-sort="SysStatus"></i></th>
                            <th style='width:15%'>操作</th>

                        </tr>
                        </thead>
                        <tbody id="stock_body_hide">

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="pages navbar-through toolbar-through">
            <div data-page="index" class="page">
                <!--内容区start-->
                <div class="page-content" id="app_no_header">
                    <!-- 库存列表start -->
                    <div id="inventory" style="background-color: #fff;">
                        <table class="product_table table_hide" id="product_table">
                            <thead>
                            <tr>
                                <th style='width:8%' class="check_head_box"></th>
                                <th class='nickname' style='width:12%'>账号</th>
                                <th style='width:12%'>名字</th>
                                <th style='width:10%'>职能</th>
                                <th style='width:10%'>部门</th>
                                <th style='width:10%'>性别</th>
                                <th title="登录次数" style='width:10%'>次数<i class="sort sort_normal" data-sort="LoginCount"></i></th>
                                <th title="上传登录时间" style='width:12%'>上次<i class="sort sort_asc" data-sort-direct="asc" data-sort="LastActiveTime"></i></th>
                                <th style='width:10%'>状态<i class="sort sort_normal" data-sort="SysStatus"></i></th>
                                <th style='width:15%'>操作</th>
                            </tr>
                            </thead>
                            <tbody id="stock_body">

                            </tbody>
                        </table>
                    </div>
                    <p class="totalcount">显示前500条<a class="diasType"></a></p>
                </div>
                <!--内容区end-->
            </div>
        </div>

        <!-- 添加start -->
        <div class="popup modify_pop_box add_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>添加团队</h5>
                <form class="form-inline add_form" style="padding: 5px 5px 5px 30px;" method="post" id="add_data">
                    <input type="text" id="id_input" style="display: none;"/>
                    <div class="form-group">
                        <label for="UserName"><b style="color:red;font-weight:bold;">*</b>帐号：</label>
                        <input type="text" class="form-control" id="UserName" placeholder="帐号" name="UserName">
                    </div>
                    <div class="form-group">
                        <label for="UserPassword"><b style="color:red;font-weight:bold;">*</b>密码：</label>
                        <input type="password" class="form-control" id="UserPassword" placeholder="密码" name="UserPassword" />
                    </div>
                    <div class="form-group">
                        <label for="RealName"><b style="color:red;font-weight:bold;">*</b>名字：</label>
                        <input type="text" class="form-control" id="RealName" placeholder="名字" name="RealName">
                    </div>
                    <div class="form-group">
                        <label for="RoleID"><b style="color:red;font-weight:bold;">*</b>职能：</label>
                        <select class="form-control" name="RoleID" id="RoleID">

                        </select>
                        <p class="more" style="display: none;"><a href="/team/function" title="点击了解职能">了解职能</a></p>
                    </div>
                    <div class="form-group">
                        <label for="Mobile">Mobile：</label>
                        <input type="text" class="form-control" id="Mobile" placeholder="Mobile" name="Mobile">
                    </div>
                    <div class="form-group">
                        <label for="Qq">Qq：</label>
                        <input type="text" class="form-control" id="Qq" placeholder="Qq" name="Qq">
                    </div>
                    <div class="form-group">
                        <label for="Email">Email：</label>
                        <input type="text" class="form-control" id="Email" placeholder="Email" name="Email">
                    </div>
                    <div class="form-group">
                        <label for="Skype">Skype：</label>
                        <input type="text" class="form-control" id="Skype" placeholder="Skype" name="Skype">
                    </div>
                    <div class="form-group">
                        <label for="RapnetAccount">RapID：</label>
                        <input type="text" class="form-control" id="RapnetAccount" placeholder="RapID" name="RapnetAccount">
                    </div>
                    <div class="form-group">
                        <label for="Department">部门：</label>
                        <input type="text" class="form-control" id="Department" placeholder="部门" name="Department">
                    </div>
                    <br />
                    <div class="form-group">
                        <label for="SysStatus">状态：</label>
                        <select class="form-control" name="SysStatus" id="SysStatus">
                            <option value="1" selected="selected">正常</option>
                            <option value="2">待审</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Sex">性别：</label>
                        <select class="form-control" name="Sex" id="Sex">
                            <option value="2" selected="selected">保密</option>
                            <option value="1">男</option>
                            <option value="0">女</option>
                        </select>
                    </div>
                    <div class="form-group remarks-group">
                        <label for="Comments">备注：</label>
                        <textarea id="Comments" name="Comments" placeholder="采购备注" class="form-text" cols="65"></textarea>
                    </div>
                    <div class="confirm">
                        <input type="reset" class="btn btn-danger supbtn" id="reset_btn" value="重置" />
                        <input type="submit" class="btn btn-danger supbtn" value="确定" /> <!-- onclick="AddUser();" -->
                    </div>
                    <em>提示：帐号一旦确定将无法修改</em>
                </form>
            </div>
        </div>
        <!-- 添加end -->

        <!-- 修改start --->
        <div class="popup modify_pop_box edit_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改团队</h5>
                <form class="form-inline edit_form" id="edit_data" style="padding: 5px 5px 5px 30px;" method="post">
                    <div class="form-group" style="display: none">
                        <label for="UserID">团队号：</label>
                        <input type="text" class="form-control" id="_UserID" placeholder="帐号" name="UserID">
                    </div>
                    <div class="form-group">
                        <label for="UserName">帐号：</label>
                        <input type="text" class="form-control" id="_UserName" placeholder="帐号" name="UserName"  readonly="readonly">
                    </div>
                    <div class="form-group">
                        <label for="UserPassword">密码：</label>
                        <input type="password" class="form-control" id="_UserPassword" placeholder="密码" name="UserPassword" value="******" />
                    </div>
                    <div class="form-group">
                        <label for="RealName">名字：</label>
                        <input type="text" class="form-control" id="_RealName" placeholder="名字" name="RealName">
                    </div>
                    <div class="form-group">
                        <label for="RoleID">职能：</label>
                        <select class="form-control" name="RoleID" id="_RoleID">

                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Mobile">Mobile：</label>
                        <input type="text" class="form-control" id="_Mobile" placeholder="Mobile" name="Mobile" >
                    </div>
                    <div class="form-group">
                        <label for="Qq">Qq：</label>
                        <input type="text" class="form-control" id="_Qq" placeholder="Qq" name="Qq">
                    </div>
                    <div class="form-group">
                        <label for="Email">Email：</label>
                        <input type="text" class="form-control" id="_Email" placeholder="Email" name="Email">
                    </div>
                    <div class="form-group">
                        <label for="Skype">Skype：</label>
                        <input type="text" class="form-control" id="_Skype" placeholder="Skype" name="Skype">
                    </div>
                    <div class="form-group">
                        <label for="RapnetAccount">RapID：</label>
                        <input type="text" class="form-control" id="_RapnetAccount" placeholder="RapID" name="RapnetAccount">
                    </div>
                    <div class="form-group">
                        <label for="Department">部门：</label>
                        <input type="text" class="form-control" id="_Department" placeholder="部门" name="Department">
                    </div>
                    <br />
                    <div class="form-group">
                        <label for="SysStatus">状态：</label>
                        <select class="form-control" name="SysStatus" id="_SysStatus">
                            <option value="1" selected="selected">正常</option>
                            <option value="2">待审</option>
                            <option value="0">禁止</option>
                            <option value="-1">已删</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Sex">性别：</label>
                        <select class="form-control" name="Sex" id="_Sex">
                            <option value="2" selected="selected">保密</option>
                            <option value="1">男</option>
                            <option value="0">女</option>
                        </select>
                    </div>
                    <div class="form-group remarks-group">
                        <label for="Comments">备注：</label>
                        <textarea id="_Comments" name="Comments" placeholder="采购备注" class="form-text" cols="65"></textarea>
                    </div>
                    <div class="confirm">
                        <input type="submit" class="btn btn-danger supbtn" value="确定" />
                    </div>
                    <em>提示：帐号不能修改</em>
                </form>
            </div>
        </div>
        <!-- 修改end --->

        <!-- 筛选start -->
        <div class="popup user_filter_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>客户筛选</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 10px;">
                    <div class="list_status list_user clearfix" id="_role">
                        <label>职能：</label>
                        <ul class="term">
                            <li value="1" title="系统管理员">管理员</li>
                            <li value="2" title="财务会计">会计员</li>
                            <li value="3">业务员</li>
                            <li value="4">采购员</li>
                            <li value="5" title="物流员兼库管员">物流员</li>
                            <li value="6" title="业务员兼采购员">业务经理</li>
                        </ul>
                    </div>
                    <div class="form-group">
                        <label>账号：</label>
                        <input class="form-control" type="text" placeholder="帐号" id="_userName" />
                    </div>
                    <div class="form-group">
                        <label>电话：</label>
                        <input class="form-control" type="text" placeholder="电话" id="_mobile" />
                    </div>
                    <div class="confirm">
                        <input type="reset" class="btn btn-danger supbtn" value="重置"/>
                        <input type="button" class="btn btn-danger supbtn" id="confirm_btn"  value="确定"/>   <!--onclick="LoadUser()"-->
                    </div>
                </form>
            </div>
        </div>
        <!-- 筛选end-->
    </div>
</div>
</body>
</html>
@Html.Partial("wap/team/commonTeamJs")
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/Js/chromatable.js"></script>
<script>
    var roleID = $.cookie("RoleID");//全局变量
</script>
<script src="~/Js/jquery.form.js"></script>
<script src="~/Js/sort/sort.js" type="text/javascript"></script>
<script src="~/js/wap/team/team.js?v=@MvcWechat.Common.Version.Get" type="text/javascript"></script>
